import lexer.*;
import tools.BasicTools;

public class App {
    public static void main(String[] args) throws Exception {
        String fileName = BasicTools.removeSuffix(args[0]);
        /** 预处理 */
        Preprocessor.main(new String[] { fileName + ".c" });
        /** 词法分析 */
        Lexer.main(new String[] { fileName + ".i" });
    }
}
